package com.tsd;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 提升多2 启动应用
 *
 * @author Hillpool
 */
@SpringBootApplication(scanBasePackages = "com.tsd")
@ServletComponentScan
@EnableAsync
@ConfigurationPropertiesScan(basePackages = "com.tsd")
public class Tsd2Application extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(Tsd2Application.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(Tsd2Application.class);
    }
}
